<volist name="tree" id="list">
    
        <tr>
            <td>
                <form action="{:U('edit')}" method="post">
                <input type="hidden" name="id" value="{$list.id}">
                <input type="text" name="sort" class="form-control input-sm input-s-sm" value="{$list.sort}">
                </form>
            </td>
            <td>{$list['allow_publish']?'是':'否'}</td>
            <td>
                <form action="{:U('edit')}" method="post">
                <input type="hidden" name="id" value="{$list.id}">
                <input type="text" name="title" class="form-control input-sm" value="{$list.title}">
                </form>
            </td>
            <td>
                <div class="btn-group pull-right" role="group">
                <a class="btn btn-default btn-sm" title="添加子分类" href="{:U('add?pid='.$list['id'])}">添加子分类</a>
                <a class="btn btn-default btn-sm" title="编辑" href="{:U('edit?id='.$list['id'].'&pid='.$list['pid'])}">编辑</a>
                <a class="btn btn-default btn-sm" title="{$list.status|show_status_op}" href="{:U('setStatus?ids='.$list['id'].'&status='.abs(1-$list['status']))}" class="ajax-get">{$list.status|show_status_op}</a>
                <a class="btn btn-default btn-sm" title="删除" href="{:U('remove?id='.$list['id'])}" class="confirm ajax-get">删除</a>
                <a class="btn btn-default btn-sm" title="移动" href="{:U('operate?type=move&from='.$list['id'])}">移动</a>
                <a class="btn btn-default btn-sm" title="合并" href="{:U('operate?type=merge&from='.$list['id'])}">合并</a>
                </div>

            </td>
     
  
            
            
    
        </tr>
     
        <tr>
    
         
        <foreach name="list['_']" item="list">
           <tr>  
               <td>
                <form action="{:U('edit')}" method="post">
                <input type="hidden" name="id" value="{$list.id}">
                <input type="text" name="sort" class="form-control input-sm input-s-sm" value="{$list.sort}">
                </form>
            </td>
              <td>{$list['allow_publish']?'是':'否'}</td>
            <td>
                <form action="{:U('edit')}" method="post">
                <input type="hidden" name="id" value="{$list.id}">
                <span class="tab-sign"></span><input type="text" class="texts" name="title" value="{$list.title}">
                </form>
            </td>
            <td>
                <div class="btn-group pull-right" role="group">
                <a class="btn btn-default btn-sm" title="添加子分类" href="{:U('add?pid='.$list['id'])}">添加子分类</a>
                <a class="btn btn-default btn-sm" title="编辑" href="{:U('edit?id='.$list['id'].'&pid='.$list['pid'])}">编辑</a>
                <a class="btn btn-default btn-sm" title="{$list.status|show_status_op}" href="{:U('setStatus?ids='.$list['id'].'&status='.abs(1-$list['status']))}" class="ajax-get">{$list.status|show_status_op}</a>
                <a class="btn btn-default btn-sm" title="删除" href="{:U('remove?id='.$list['id'])}" class="confirm ajax-get">删除</a>
                <a class="btn btn-default btn-sm" title="移动" href="{:U('operate?type=move&from='.$list['id'])}">移动</a>
                <a class="btn btn-default btn-sm" title="合并" href="{:U('operate?type=merge&from='.$list['id'])}">合并</a>
                </div>

            </td>
            </tr>
        </foreach>

        
 </tr>
</volist>